@extends('layout.front')
@section('title','往期视频')
@section('head')
    <div class="nav">
        <ul class="nav_body">
            <li><a href="/">首页</a></li>
            <li><a href="/master-lecture">名家讲堂</a></li>
            <li><a href="/master">名家风采</a></li>
            <li><a class="current" href="/video">往期视频</a></li>
        </ul>
    </div>
@endsection
@section('content')
    <div class="main">
        <div class="export">
            <div class="export_list clearfix">
                @foreach($videos as $v)
                    <div class="review_ship" style="margin-right: 20px">
                        <div class="review_ship_img" >
                            <a href="/video-show/{{$v->id}}"><img width="270" height="160" src="{{$v->image}}" ></a>
                        </div>
                        <div class="review_ship_txt">
                        <div class="review_ship_title break"><a href="/video-show/{{$v->id}}">{{$v->id}}</a></div>
                        <div class="review_ship_left">
                                <?php
                                $master = \App\Models\Master::find($v->master_id);
                                ?>
                            <p>主持：<a href="/master-show/{{$v->master_id}}">{{$master->name}}</a></p>
                            <p>日期：<span class="txt_999">{{$v->end_at}}</span></p>
                        </div>
                        <div class="review_ship_right">
                            <a class="info_btn" href="/video-show/{{$v->id}}">查看详情</a>
                        </div>
                        </div>
                    </div>
    @endforeach
            </div>
        </div>{{$videos->links('layout.page')}}
    </div>

@endsection
